#include "User.h"

using namespace AgoraClient;

User::User(const unsigned id, const std::string& login, unsigned int idCurrentChannel)
: _id(id), _login(login), _idCurrentChannel(idCurrentChannel), _connected(false)
{
}

User::~User(void)
{
}

const unsigned int	User::GetId() const
{
	return this->_id;
}

const std::string&	User::GetLogin() const
{
	return this->_login;
}

void				User::SetLogin(const std::string& login)
{
	this->_login = login;
}

unsigned int		User::GetCurrentChannelId() const
{
	return this->_idCurrentChannel;
}

void				User::SetCurrentChannelId(unsigned int id)
{
	this->_idCurrentChannel = id;
}

bool				User::IsConnected() const
{
	return this->_connected;
}

void				User::SetConnected(const bool value)
{
	this->_connected = value;
}
